#include <REGX52.H>
#include "LCD1602.h"	//包含LCD1602头文件
#include "Delay.h"

void LCD_Function_Test(){
	LCD_ShowChar(1,1,'A');
	LCD_ShowString(1,3,"YE");
	LCD_ShowNum(1,9,123,1);
	LCD_ShowSignedNum(1,13,-66,2);
	LCD_ShowHexNum(2,1,0x8,2);
	LCD_ShowBinNum(2,4,0xAA,8);
}

static int Result = 0;

void LCD_Calc_Test(int Result){
	LCD_ShowNum(1,1,Result,3);
}
void main()
{
	LCD_Init();
	// LCD_Function_Test();
	LCD_Calc_Test(Result);
	while(1){
		Result++;
		Delay(500);
		LCD_Calc_Test(Result);
	}
}

